import { createApp } from 'vue'
import './style.css'
import App from './App.vue'
import router from './router/index.js';
import './assets/rem/index.js'
import {
    Form, Field, CellGroup, Space, Button, Tabbar,
    TabbarItem, Icon, Uploader, NavBar, showLoadingToast,
    closeToast, Toast, Notify

} from 'vant';
import 'vant/lib/index.css';
import store from './store/index.js';
import Directives from './command/index.js';

const app = createApp(App);
app.use(Button);
app.use(router);
app.use(Form);
app.use(Field);
app.use(CellGroup)
app.use(Space);
app.use(Tabbar);
app.use(TabbarItem);
app.use(Icon);
app.use(Uploader);
app.use(NavBar);
app.use(Toast);
app.use(Notify);
app.use(store);
app.use(Directives);   // 全局注册   // 注册指令,并调用了install函数
app.mount('#app')
